package cn.wjc.demo.partone.api.fallback;

import cn.wjc.demo.partone.api.NothingApi;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class NothingApiFallbackFactory implements FallbackFactory<NothingApi> {

    @Override
    public NothingApi create(Throwable cause) {
        return null;
    }
}
